<template>
  <div class="edit-btn" @click="handleClick">
    编辑
    <img :src="icon" class="ml4">
  </div>
</template>
<script>
import icon from '@/assets/medium/editResourceActive.png';
export default {
  data() {
    return {
      icon
    };
  },
  methods: {
    handleClick() {
      this.$emit('handleClick');
    }
  }
};
</script>
<style lang="scss" scoped>
.edit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 32px;
  font-family: PingFangSC-Medium;
  border: 1px solid #406eff;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  color: #406eff;
  img {
    height: 14px;
    width: 14px;
  }
}
.edit-btn:hover {
  opacity: .9;
}
</style>
